package cn.siat.gene.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.siat.gene.domain.DesignTBProjectMain;
import cn.siat.gene.domain.vo.ProjectVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 项目主Mapper接口
 * 
 * @author siat
 * @date 2022-10-08
 */
@Mapper
public interface DesignTBProjectMainMapper extends BaseMapper<DesignTBProjectMain>{
    /**
     * 查询项目主
     * 
     * @param id 项目唯一标识
     * @return 项目主
     */
    public DesignTBProjectMain selectDesignTBProjectMainById(String id);

    /**
     * 查询项目主列表
     * 
     * @param designTBProjectMain 项目主
     * @return 项目主集合
     */
    public List<DesignTBProjectMain> selectDesignTBProjectMainList(DesignTBProjectMain designTBProjectMain);

    /**
     * 修改项目查看时间
     *
     * @param id 项目唯一标识
     * @return int
     */
    public int updateViewedById(String id);

    /**
     * 查询项目创建者
     *
     * @param
     * @return
     */
    public List<Map<String,String>> selectProjectCreateStaffList(String loginStaffId);

    public List<ProjectVo> selectAllProject(String loginStaffId);
}
